package com.eusun.design.factory;

public class Demo {
    public static void main(String[] args) {
        Shape circle = ShapeFactory.create(ShapeEnum.CIRCLE);
        circle.draw();
        Shape square = ShapeFactory.create(ShapeEnum.SQUARE);
        square.draw();
    }
}
